package main

import (
	"fmt"
	"route/mq"
	"strconv"
	"time"
)

func main() {
	aswone := mq.NewRabbitMQRouting("asw", "asw_one")
	aswtwo := mq.NewRabbitMQRouting("asw", "asw_two")
	for i := 0; i <= 100; i++ {
		aswone.PublishRouting("Hello aswone!" + strconv.Itoa(i))
		aswtwo.PublishRouting("Hello aswtwo!" + strconv.Itoa(i))
		time.Sleep(1 * time.Second)
		fmt.Println(i)
	}
}
